home *** CD-ROM | disk | FTP | other *** search
- void help(int menu)
- {
- char buf[100];
-
- printf("\n\nHelp:\n\n");
-
- switch(menu)
- {
- case CODE:
- printf("CPU: -cpu=n\n");
- printf("Generate code for current CPU and upwards.\n\n");
-
- printf("Floating point: -fpu=n\n");
- printf("Enables the usage of \"float\".\n");
- printf("IEEE is for all systems.\n");
- printf("FPU is for systems with a FPU co-processor.\n\n");
-
- printf("Code model: -sc\n");
- printf("vbcc can access static data in two ways. By default all such data will\n");
- printf("be accessed with full 32bit addresses (large data model).\n");
- printf("However there is a second way. You can set up an address register (a4)\n");
- printf("to point into your data segment and then address data with a 16bit\n");
- printf("offset through this register.\n\n");
-
- printf("Data model: -sd\n");
- printf("If you use the small code model calls to external functions (i.e. from\n");
- printf("libraries or other object files) are done with 16bit offsets over\n");
- printf("the program counter rather than with absolute 32bit addresses.\n\n");
- break;
-
-
- case COMPILER:
- printf("Link with stdlib: -nostdlib\n");
- printf("do not link with standard-startup/libraries; useful only\n");
- printf("for people who know what they are doing.\n\n");
-
- printf("Max errors: -maxerrors=n\n");
- printf("Max number of errors before stop compiling.\n\n");
-
- printf("Strip filename: -strip-path\n");
- printf("Only show filenames in VBCC's error messages.\n\n");
- break;
-
-
-
- case OPTIMIZE:
- printf("Optimize: -On\n");
- printf("Level of optimization done by VBCC.\n\n");
-
-
-
-
- break;
-
-
-
-
-
-
-
-
-
-
-
- }
-
- printf("Press <return>");
- gets(buf);
- }
-
-